package com.finance.cooperate.common.constant;

/**
 * @ClassName CodeMsg
 * @Description TODO
 * @Author shen
 * @Date 2022/5/25 15:11
 * @Modify ...
 */
public enum CodeMsg {

    FAILURE("10001", "operation failed"),
    USER_ID_PARAMS_NULL("10002", "empty user id"),
    PARAMS_NULL("10003", "parameter is empty"),
    SCORE_PARAMS_NULL("10004", "empty score"),
    PARAMS_ERROR("10005", "the parameter is wrong"),
    SYSTEM_ERROR("10006", "system exception"),
    DB_TIMEOUT("10007", "DB connection timed out"),

    SUCCESS("200", "Ok");

    //返回码
    private String code;
    //返回结果描述
    private String msg;

    CodeMsg(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
